#ifndef CCLIENTLOGIN_H
#define CCLIENTLOGIN_H

#include "inetworking.h"
#include "protocol/ClientLogin.h"

// a class that represents for information of client login

class CClientLogin : public INetWorking
{
public:
    CClientLogin(QObject *parent = 0);
    ~CClientLogin();

public:
    virtual void prepareWriteData(QByteArray* block, void* param);
    virtual bool prepareReadData(QTcpSocket *pTcpSocket, protocal::BasePtc *basePtc);
    virtual void formResult();

private:
    // out
    QString username;
    QString password;

    // in
    short     ans;
    char    client_id[10];
};

#endif // CCLIENTLOGIN_H
